.statHub-document-layout {
  height: 100%;
  width: 100%;
}

.statHub-document-content {
  height: 100%;
  width: 100%;
}

.statHub-document-container {
  height: 100%;
  display: flex;
  background: var(--ant-color-bg-container);
}

.statHub-document-card {
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.03),
    0 1px 6px -1px rgba(0, 0, 0, 0.02),
    0 2px 4px 0 rgba(0, 0, 0, 0.02);
}

.statHub-document-card :global(.ant-card-head) {
  border-bottom: 1px solid #f0f0f0;
  padding: 16px 24px;
}

.statHub-document-card :global(.ant-card-head-title) {
  font-size: 18px;
  font-weight: 500;
}

.statHub-document-card :global(.ant-card-body) {
  padding: 24px;
}

.statHub-document-editor {
  flex: 1;
  padding: 24px;
  overflow: auto;
  border-right: 1px solid #d5d5d5;
  position: relative;
  height: calc(100% - 48px);
}

.statHub-document-opt-bar {
  text-align: right;
  padding: 0px 24px 16px 24px;

  &>* {
    margin-left: 12px;
  }
}

.statHub-document-assistant {
  width: 450px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* 编辑器遮罩层 */
.statHub-editor-mask {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(1px);
}

.statHub-editor-mask-content {
  background-color: #fff;
  padding: 20px 30px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  text-align: center;
  font-size: 16px;
  color: #333;
  max-width: 80%;
  min-width: 188px;
}

/* 暗色主题适配 */
@media (prefers-color-scheme: dark) {
  .statHub-document-container {
    background: var(--ant-color-bg-container);
  }

  .statHub-document-card {
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.15),
      0 1px 6px -1px rgba(0, 0, 0, 0.12),
      0 2px 4px 0 rgba(0, 0, 0, 0.12);
  }

  .statHub-document-card :global(.ant-card-head) {
    border-bottom-color: #303030;
  }

  .statHub-editor-mask {
    background-color: rgba(0, 0, 0, 0.3);
  }

  .statHub-editor-mask-content {
    background-color: #1f1f1f;
    color: #f0f0f0;
  }
}